/*!
\copyright  Copyright (c) 2020 Qualcomm Technologies International, Ltd.\n
            All Rights Reserved.\n
            Qualcomm Technologies International, Ltd. Confidential and Proprietary.
\file       headset_temperature_config.c
\brief     voltage-> temperature configuration table

    This file contains voltage->temperature configuration table which maps different voltages to
    temperature values.
*/

#include "headset_temperature_config.h"
#include "temperature.h"

/*! \brief voltage->temperature config table*/
const temperature_lookup_t headset_temperature_config_table[] =
{
    {1730, -40},
    {1725, -39},
    {1721, -38},
    {1716, -37},
    {1711, -36},
    {1706, -35},
    {1700, -34},
    {1695, -33},
    {1689, -32},
    {1682, -31},
    {1676, -30},
    {1669, -29},
    {1662, -28},
    {1654, -27},
    {1647, -26},
    {1639, -25},
    {1630, -24},
    {1622, -23},
    {1613, -22},
    {1603, -21},
    {1594, -20},
    {1584, -19},
    {1574, -18},
    {1563, -17},
    {1552, -16},
    {1541, -15},
    {1529, -14},
    {1517, -13},
    {1505, -12},
    {1493, -11},
    {1480, -10},
    {1467, -9},
    {1453, -8},
    {1439, -7},
    {1425, -6},
    {1411, -5},
    {1396, -4},
    {1381, -3},
    {1366, -2},
    {1350, -1},
    {1334, 0},
    {1318, 1},
    {1302, 2},
    {1286, 3},
    {1269, 4},
    {1252, 5},
    {1235, 6},
    {1218, 7},
    {1201, 8},
    {1183, 9},
    {1166, 10},
    {1148, 11},
    {1131, 12},
    {1113, 13},
    {1095, 14},
    {1077, 15},
    {1059, 16},
    {1041, 17},
    {1023, 18},
    {1005, 19},
    {988, 20},
    {970, 21},
    {952, 22},
    {934, 23},
    {917, 24},
    {900, 25},
    {882, 26},
    {865, 27},
    {848, 28},
    {831, 29},
    {814, 30},
    {798, 31},
    {781, 32},
    {765, 33},
    {749, 34},
    {733, 35},
    {718, 36},
    {702, 37},
    {687, 38},
    {672, 39},
    {657, 40},
    {643, 41},
    {629, 42},
    {614, 43},
    {601, 44},
    {587, 45},
    {574, 46},
    {561, 47},
    {548, 48},
    {535, 49},
    {523, 50},
    {511, 51},
    {499, 52},
    {487, 53},
    {476, 54},
    {465, 55},
    {454, 56},
    {443, 57},
    {433, 58},
    {423, 59},
    {413, 60},
    {403, 61},
    {394, 62},
    {384, 63},
    {375, 64},
    {366, 65},
    {358, 66},
    {349, 67},
    {341, 68},
    {333, 69},
    {325, 70},
    {317, 71},
    {310, 72},
    {302, 73},
    {295, 74},
    {288, 75},
    {282, 76},
    {275, 77},
    {269, 78},
    {262, 79},
    {256, 80},
    {250, 81},
    {244, 82},
    {239, 83},
    {233, 84},
    {228, 85}
};

const temperature_lookup_t* HeadsetTemperature_GetConfigTable(unsigned* table_length)
{
    *table_length = ARRAY_DIM(headset_temperature_config_table);
    return headset_temperature_config_table;
}

